<style>
	.oldcatfeaturedthreeblock { width:100%;margin:0px;margin-bottom:20px;border-bottom:#cccccc 1px solid; }
		.oldcatfeaturedthreeblockmain { width:320px;height:320px;float:left;margin:0px; }
			.oldcatfeaturedthreeblockmain .oldcatfeaturedthreeblocktitle { text-indent:10px; }
			.oldcatfeaturedthreeblockmain .quantity, .oldcatfeaturedthreeblockmain .buttons_added { width:100px;float:left;margin:0px;padding-top:7px; }
			.oldcatfeaturedthreeblockmain p.price { text-align:right; }
				.oldcatfeaturedthreeblockmain p.price del { display:none; }
				.oldcatfeaturedthreeblockmain p.price ins, .oldcatfeaturedthreeblockmain p.price { text-decoration:none;font-size:20px;font-weight:bold;color:#3a3f55; }
		.oldcatfeaturedthreeblockaddons { width:300px;height:320px;float:left;margin:0px; }
			.oldcatfeaturedthreeblockaddons p.price { text-align:right; }
				.oldcatfeaturedthreeblockaddons p.price del { display:none; }
				.oldcatfeaturedthreeblockaddons p.price ins, .oldcatfeaturedthreeblockaddons p.price { text-decoration:none;font-size:20px;font-weight:bold;color:#3a3f55; }
				.oldcatfeaturedthreeblockaddons .quantity, .oldcatfeaturedthreeblockaddons .buttons_added { width:100px;float:right;margin:0px;padding-top:7px; }
		.oldcatfeaturedthreeblocktitle { width:100%;height:40px;line-height:40px;font-size:13px;font-weight:bold;color:#ffffff;background:#3a3f55; }
</style>

<?php // Set The Standard Product Variables For The Page
	$mainproductid = get_field('mainfeaturedproduct');
	
	$addonproductoneid = get_field('addonfeaturedproductone');
            $addonproductonetext = get_field('addonfeaturedproductonetext');

	$addonproducttwoid = get_field('addonfeaturedproducttwo');
            $addonproducttwotext = get_field('addonfeaturedproducttwotext');
?>

<div class="oldcatfeaturedthreeblock">
	<div class="oldcatfeaturedthreeblockmain">
		<div class="oldcatfeaturedthreeblocktitle">Bestselling <?php the_title(); ?></div>
		<div style="padding:10px;width:300px;">
			<?php $mainproduct = new wp_query('post_type=product&posts_per_page=1&p='.$mainproductid.'');
				while($mainproduct->have_posts()) : $mainproduct->the_post(); ?>

				<?php
                                // Get The Product Image
				if (get_field('productFeaturedImage') != '') {
                	$mainproductimage = get_field('productFeaturedImage');
                } else {
                	$mainproductimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
                        $mainproductimage = $mainproductimage[0];
                } ?>

				<a href="<?php the_permalink(); ?>">
					<img src="<?php echo $mainproductimage; ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" style="width:150px;height:150px;float:left;margin:0px;margin-right:20px;margin-bottom:10px;" />
				</a>

				<p style="font-size:15px;font-weight:bold;text-align:right;line-height:18px;"><a href="#"><?php the_title(); ?></a></p>

				<p style="text-align:right;font-size:13px;font-weight:bold;margin-bottom:0px;">You Pay:</p>
				<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>

				<div style="width:100%;height:0px;clear:both;"></div>

				<h3>Buy Yours Online Today:</h3>

				<div style="width:300px;margin-left:auto;margin-right:auto;">
					<div style="width:70px;height:50px;line-height:50px;float:left;margin:0px;font-weight:bold;">
						Buy Now:
					</div>
				<?php // CALL THE CORRECT ADD TO CART SECTION BY PRODUCT TYPE
					if($product->product_type = 'simple') {
						include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/simple.php';
					} elseif($product->product_type == 'grouped') {
						include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/grouped.php';
					} elseif($product->product_type == 'variable') {
						include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php';
					} elseif($product->product_type == 'external') {
						include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/external.php';
					} ?>
				</div>
		
			<?php endwhile; ?>
			<?php wp_reset_query(); ?>
		</div>
	</div>
	<div class="oldcatfeaturedthreeblockaddons">
		<div class="oldcatfeaturedthreeblocktitle">Recommended Addons &amp; Upgrades</div>
		<div style="padding:10px;height:125px;padding-bottom:5px;width:280px;">

			<?php $addonproduct = new wp_query('post_type=product&posts_per_page=1&p='.$addonproductoneid.'');
				while($addonproduct->have_posts()) : $addonproduct->the_post(); ?>

				<?php
                                // Get The Product Image
				if (get_field('productFeaturedImage') != '') {
                	$addonproductimage = get_field('productFeaturedImage');
                } else {
                	$addonproductimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
                        $addonproductimage = $addonproductimage[0];
                } ?>
			
			<a href="<?php the_permalink(); ?>">
				<img src="<?php echo $addonproductimage ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" style="width:75px;height:75px;float:left;margin:0px;margin-right:10px;border:0px;padding:0px" />
			</a>

			<p style="font-weight:bold;margin-bottom:0px;"><a href="<?php the_permalink(); ?>"><?php echo $addonproductonetext; ?></a></p>

			<p style="text-align:right;font-size:13px;font-weight:bold;margin-bottom:0px;">You Pay:</p>
			<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>

			<div style="width:300px;margin-left:auto;margin-right:auto;margin-top:-5px;">
			<?php // CALL THE CORRECT ADD TO CART SECTION BY PRODUCT TYPE
				if($product->product_type = 'simple') {
					include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/simple.php';
				} elseif($product->product_type == 'grouped') {
					include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/grouped.php';
				} elseif($product->product_type == 'variable') {
					include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php';
				} elseif($product->product_type == 'external') {
					include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/external.php';
				} ?>
			</div>

			<?php endwhile; ?>
			<?php wp_reset_query(); ?>

			<div style="width:100%;height:0px;clear:both;"></div>
		</div>
		<div style="padding:10px;height:125px;padding-top:5px;width:280px;">
			
			<?php $addonproduct = new wp_query('post_type=product&posts_per_page=1&p='.$addonproducttwoid.'');
				while($addonproduct->have_posts()) : $addonproduct->the_post(); ?>

				<?php
                                // Get The Product Image
				if (get_field('productFeaturedImage') != '') {
                	$addonproductimage = get_field('productFeaturedImage');
                } else {
                	$addonproductimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
                        $addonproductimage = $addonproductimage[0];
                } ?>
			
			<a href="<?php the_permalink(); ?>">
				<img src="<?php echo $addonproductimage ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" style="width:75px;height:75px;float:left;margin:0px;margin-right:10px;border:0px;padding:0px" />
			</a>

			<p style="font-weight:bold;margin-bottom:0px;"><a href="<?php the_permalink(); ?>"><?php echo $addonproducttwotext; ?></a></p>

			<p style="text-align:right;font-size:13px;font-weight:bold;margin-bottom:0px;">You Pay:</p>
			<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>

			<div style="width:300px;margin-left:auto;margin-right:auto;margin-top:-5px;">
			<?php // CALL THE CORRECT ADD TO CART SECTION BY PRODUCT TYPE
				if($product->product_type = 'simple') {
					include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/simple.php';
				} elseif($product->product_type == 'grouped') {
					include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/grouped.php';
				} elseif($product->product_type == 'variable') {
					include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php';
				} elseif($product->product_type == 'external') {
					include '/home/silicons/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/external.php';
				} ?>
			</div>

			<?php endwhile; ?>
			<?php wp_reset_query(); ?>

		</div>
	</div>
	<div style="width:100%;height:0px;clear:both;"></div>
</div>